package com.wechat.backend.repository;

import com.wechat.backend.entity.Friend;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;

public interface FriendRepository extends JpaRepository<Friend, Long> {
    Friend findByUserIdAndFriendId(Integer userId, Integer friendId);
    List<Friend> findByUserIdAndStatus(Integer userId, String status);
    List<Friend> findByFriendIdAndStatus(Integer friendId, String status);
} 